
import userapis from './modules/user';   // 引入局部的数据模拟文件
import cpttapis from './modules/cptts';
import elseapis from './modules/else';
var Mock = require('mockjs')

Mock.setup({
  timeout: '400-2000'
})

const mocks = [
  ...userapis,...cpttapis,...elseapis
  ]
mocks.map(e => {
  console.log(e)
  Mock.mock(new RegExp(e.url), e.method, e.data)
})


export default Mock